/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package cn.ac.iie.di.splitor;

import java.util.concurrent.ArrayBlockingQueue;

/**
 *
 * @author Austin
 */
public class test {

    public static void main(String[] args) {
        ArrayBlockingQueue<String> xxx = new ArrayBlockingQueue<>(500);
        Thread thread = new Thread(new FileListener("D:\\123\\111", xxx));
        thread.setName("FileListener" + "_gwx");
        thread.start();
        ArrayBlockingQueue<String> ccc = new ArrayBlockingQueue<>(500);
        Thread thread1 = new Thread(new FileRead("D:\\123\\222", xxx, ccc));
        thread1.setName("FileRead" + "_gwx");
        thread1.start();

    }
}
